export default {
  methods: {
    showCount() {
      uni.setTabBarBadge({
        index: 2,
        text: uni.getStorageSync("count") ? uni.getStorageSync("count") + '' : null
      })
    }
  },
  onShow() {
    this.showCount()
  }
}